home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000233_news@columbia.edu _Wed Apr 26 13:36:44 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  6KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by uhaligani.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id NAA00723
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Wed, 26 Apr 2000 13:36:43 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA09537
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 26 Apr 2000 13:36:42 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id NAA04569
  10.     for kermit.misc@watsun.cc.columbia.edu; Wed, 26 Apr 2000 13:10:59 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. From: Ishikawa <ishikawa@yk.rim.or.jp>
  13. Subject: Re: Parity incorrectly reported, and RTS/CTS problem on Solaris 7 for 
  14. Date: Thu, 27 Apr 2000 02:09:03 +0900
  15. Organization: RIMNET InterNetNews site
  16. Message-ID: <390722AF.622DDDA0@yk.rim.or.jp>
  17. To: kermit.misc@columbia.edu
  18.  
  19. Frank da Cruz wrote:
  20.  
  21. >Thanks for the detailed report!  It's not conclusive but it looks like
  22. >we can (and should) enable POSIX_CRTSCTS for all Solaris builds.  The
  23. >only thing that bothers me is why nobody ever noticed flow-control
  24. >failures before?  The Solaris version of C-Kermit has been using SVR4
  25. >style RTS/CTS since 1992.
  26.  
  27. >So maybe the failures occur only in conjunction with 8-data-bits+parity,
  28. >which is a new feature of C-Kermit 7.0.  Do you also get failures when
  29. >you don't also set hardware parity?
  30.  
  31. (Any volunteers to test the untested combination yet?)
  32.  
  33. I tried a few test without using hardware parity. Still no luck. CRTSCTS is
  34.  
  35. not set in stty output of kermit-controlled tty port.
  36.  
  37. I am as puzzled as you regarding why the hardware flow-control
  38. problem has not been not noticed by others before.
  39.  
  40. Here is my take on why this problem was not noticed before
  41. by the many kermit users on Sun boxes, and if my guess is correct,
  42. the problem didn't harm many people at all.
  43.  
  44. - Hardware flow-control is only necessary when
  45.   CPU/OS is rather slow in comparison to the serial line speed.
  46.   Thanks to the deep hardware FIFO queue in serial controller, and
  47.   ever faster CPU, it seems that only under heavy use
  48.   such as 115200bps on a 166Mhz pentium CPU under solaris 7 for x86
  49.   using the 4KB packet length, the broken hardware flow-control
  50.   problem becomes apparent.
  51.  
  52.   I wonder if this problem is noticeable on a Pentium 400 Mhz PC
  53.   at 115200 bps connection at all.
  54.  
  55.   (Even on 166Mhz Pentium CPU PC, reducing the speed to 38400 bps
  56.   works fine, and 115200 bps with 3 (three) KB packet length also works
  57.   fine, too. So a lowly 166Mhz pentium PC works quite well.)
  58.  
  59. - Hardware Perception: Cable Unreliability.
  60.  
  61.   At 115200bps or when fast speed connection requires hardware
  62.   flow control, the cable (poor) quality often becomes an issue.
  63.   I suspect some people did encounter this broken rts/cts handling
  64.   on Solaris platform (2.4 or later), but  when they saw that
  65.   the reduced speed or reduced packet size  made the transfer
  66.   succeed, they would have said  "Aha, bad cable/connection."
  67.   and forgot the issue. (I would.)
  68.  
  69. - Solaris-specific Historical Reason
  70.  
  71.   If my reading of the messages is correct, solaris up to 2.3 did
  72.   set RTS/CTS using ATT SysV semantics.
  73.   The first broken version of kermit for Solaris 2.4 for x86
  74.   didn't suffer much since the OS itself doesn't seem to have
  75.   support for 115200 bps at all.
  76.   Solaris 2.5.1 for sparc (on Ultra 1, at least) has
  77.   no support for 115200 bps for serial tty input (split speeds for
  78.   input and output. Output seems to have 115200 bps support.) and
  79.   so presumably not many people tried these fast speed setting with
  80.   kermit on this platform, either.
  81.  
  82.   So the chances are that the speed settings that would have made the
  83.   broken RTS/CTS handling prominent only appeared in Solaris after
  84.   powerful CPU had appeared and that the rts/cts control was not often
  85.   required in practical settings.  (I have been using kermit to talk
  86.   to Cisco router serial console port, but this is at 9600 bps.)
  87.  
  88. Practically speaking, for 115200 bps transfer to work, the cable must
  89. be a high-quality short one. This means that the connection is quite
  90. likely between two devices in the same room to begin with.  (Unless
  91. the connection is interfaced to electrically isolated optical fiber
  92. cable, etc..)
  93. In such environment, LAN using inexpensive 10base-T connection
  94. probably is more popular and is more fast indeed. So serial line
  95. connection using Kermit in such a setting may be a rare attempt.
  96. My current attempt is between a computer and a electronics gadget box
  97. that speaks rs232c at various speeds with hardware flow control, and
  98. this is why I was led to the rts/cts problem. Not many sysadmins
  99. would have followed similar tracks.
  100.  
  101. Thus my theory is that not many people tried 115200bps direct
  102. connection using kermit on solaris boxes to begin with.
  103. RTS/CTS hardware flow control problem was not noticed because
  104. it was masked by fast CPU and
  105. deep hardware FIFO queue on PC,  or attributed to `bad cable', etc.
  106.  
  107. One exception to the `rare' use of 115200bps on solaris boxes is
  108. ppp-connection using serial line.
  109. Maybe the ppp (daemon and/or client) developers
  110. may know something about this change of the way hardware flow-control
  111. is enabled on various solaris versions because these developers
  112. often have to handle external modem/ISDN TA (terminal adaptor) that are
  113. connected directly to solaris boxes using very high-speed serial connection
  114.  
  115. such as 115200bps (or faster). But then again, one of these days, the
  116. ISDN dialup routers with ethernet hub function made the serial
  117. connection for this purpose obsolete, too.
  118.  
  119. PS: if we can return the failure code (-1) from
  120. the att sysV semantics functions(s) to higher level
  121. funtions, at least we can tell the user that something is woring by
  122. printing
  123. some meaningful  messages.
  124. I am not familiar enough with the code to suggest a patch yet with
  125. this regard.
  126.  
  127. Happy Hacking,
  128.  
  129. Ishikawa
  130.  
  131.  
  132.